<?php
// +----------------------------------------------------------------------
// | author: thinkphp
// +----------------------------------------------------------------------

namespace app\api\controller;


use app\adminapi\logic\setting\CarTypeLogic;

/**
 * 管理
 * Class ArticleController
 * @package app\api\controller
 */
class CarTypeController extends BaseApiController
{

    public array $notNeedLogin = ['all'];


    /**
     * @notes 获取旅行社
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function all()
    {
        $result = CarTypeLogic::getAllData();
        return $this->data($result);
    }

}